package exercise.dao;

import exercise.domain.User;

import java.util.List;

public interface UserDao {
    List<User> finAll();

    void saveUserRoleRel(Long userId,Long[] roleIds);

    Long save(User user);

    void delUser(Long userId);

    void delUserRoleRel(Long userId);

    User findByUserNameAndPassword(String userName, String password) throws Exception;
}
